package com.woniuxy.service.impl;

import com.woniuxy.entity.Dept;
import com.woniuxy.mapper.DeptMapper;
import com.woniuxy.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public int save(Dept dept) {
        return deptMapper.insert(dept);
    }
}
